import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Product from './views/nav1/ProductList.vue'
import Form from './views/nav1/Form.vue'
import Reimbursement from './views/nav2/Reimbursement.vue'
import State from './views/nav3/Statement.vue'
import TopUp from './views/nav3/TopUp.vue'
import Lending from './views/nav2/Lending.vue'
import Business from './views/nav4/BusinessInfo.vue'
import ChangePwd from './views/nav4/ChangePwd.vue'
import echarts from './views/charts/echarts.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '',
        iconCls: 'fa fa-home',
        leaf: true,//只有一个节点
        children: [
            { path: '/echarts', component: echarts, name: '首页' },
        ]
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '投放管理',
        iconCls: 'fa fa-tasks',//图标样式class
        children: [
            { path: '/productList', component: Product, name: '产品列表' },
            { path: '/form', component: Form, name: '新增产品' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '数据统计',
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/reimbursement', component: Reimbursement, name: '还款' },
            { path: '/lending', component: Lending, name: '放款' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '财务',
        iconCls: 'fa fa-credit-card-alt',
        leaf: false,//只有一个节点
        children: [
            { path: '/state', component: State, name: '消费明细' },
            { path: '/topup', component: TopUp, name: '充值明细' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '账户管理',
        iconCls: 'fa fa-cog',
        children: [
            { path: '/business', component: Business, name: '商户信息' },
            { path: '/changepwd', component: ChangePwd, name: '修改密码' }

        ]
    }
];

export default routes;